package com.maserb.monitor.repository;

import com.maserb.monitor.entity.JwAttentionEntity;
import com.maserb.monitor.entity.JwOrgEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JwAttentionRepository extends JpaSpecificationExecutor<JwAttentionEntity>
        , PagingAndSortingRepository<JwAttentionEntity, String> {

    List<JwAttentionEntity> findByUuid(String uuid);

    List<JwAttentionEntity> findByOrgId(String orgId);

    List<JwAttentionEntity> findByUuidAndOrgId(String uuid,String orgId);
}